import java.util.Random;

public class demo05 {
    public static void main(String[] args) {
        //获取10个随机数
        Random r = new Random();
        for (int i = 1; i <= 10; i++) {
            int age = r.nextInt(10, 81);
            //三元判断
            String result = age < 18 ? "未成年" : (age > 55 ? "老年" : "青年");
            System.out.println(result);
        }
    }
}